package org.sgx.gwteditors.yui;

import org.sgx.gwteditors.client.editor.Editor;
import org.sgx.gwteditors.client.editor.EditorCreator;
import org.sgx.gwteditors.client.editor.Types;
import org.sgx.gwteditors.client.impl1.EditorFramework1;
import org.sgx.gwteditors.client.impl1.simple.BooleanEditor;

public class YuiEditorFramework extends EditorFramework1 {

	@Override
	protected void loadEditors() {
		super.loadEditors();
		Types types = Types.getInstance();
		
		types.registerEditor(TYPE_BOOLEAN, Boolean.class, new EditorCreator<Boolean>() {
			@Override
			public Editor<Boolean> create() {
				return new BooleanEditor();
			}
		});		
	}
}
